package com.appleyk.controller;

import com.appleyk.service.TuserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 用户层
 */
@RestController
@RequestMapping("/sys/tuser")
public class TuserController {

    @Autowired
    private TuserService TuserService;

    /**
     * 修改介绍用户的字段信息
     * @param uid
     * @param pijia
     * @return
     */
    @PostMapping("/{id}/set")
    public String updataTuser(@PathVariable("id")Long id,@RequestParam("uid")Long uid, @RequestParam("pijia")String pijia ){

        String data=TuserService.updeta(id,uid,pijia);

            return  data;
        }




}
